package com.ktwlsoft.archivemanage.payload.businessDic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 业务字段修改
 *
 * @author zhuhe on 2019/10/25 16:01
 * @version 1.0
 */
@ApiModel("业务字段修改")
@Getter
@Setter
public class BusinessDicModifyRequest {

    /**id**/
    @ApiModelProperty("id")
    @NotNull(message = "id不能为空")
    private Long id;

    /**字段值**/
    @ApiModelProperty("字段值")
    @Size(max = 60, message = "字段值参数超长")
    @NotNull(message = "字段值不能为空")
    private String dicValue;

    /**旧值**/
    @ApiModelProperty("旧值")
    @NotNull(message = "旧值不能为空")
    private String oldValue;

    /**新值**/
    @ApiModelProperty("新值")
    @NotNull(message = "新值不能为空")
    private String newValue;
}